

{% extends "bootstrap/base.html" %}
{% block title %}
    销售列表
{% endblock %}
{% include 'nav.html' %}
{% block content %}
<body background="{{ url_for('static', filename='images/background.jpg') }}">
<div class="container login-page" style="padding-top: 20px">
    <div class="row">

        <a href="{{ url_for('admin.saleorder') }}">添加销售</a>
        {%  for saleorder in saleorders %}

          <div class="table-responsiv">
            <table class="table" border="2px">
                <tbody>
                    <tr>
                        <td>销售时间:{{ saleorder.saledate }}</td>
                        <td>销售编号:{{ saleorder.salebh }}</td>
                        <td >购买客户:{{ saleorder.clients.name }}</td>
                        <td >销售金额:</td>

                        <td rowspan="{{ saleorder.salelists|length}}">销售人:{{ saleorder.saler }}</td>

                    </tr>
                    {% for salelist in saleorder.salelists %}
                    <tr>
                        <td>{{ salelist.commoditys.name }}</td>
                        <td>{{ salelist.salejg }}</td>
                        <td>{{ salelist.salesl }}</td>
                        <td>{{ salelist.salejg*salelist.salesl }}</td>

                    {% endfor %}
                    <td>总额:暂未想到实现


                    </td>
                    </tr>

                </tbody>
             </table>
        {% endfor %}
        </div>
    </div>
</div>
</body>
{% endblock %}
